(require 'projectile)

(projectile-mode +1)
(define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)

(setq projectile-project-search-path '("~/.emacs.d/" "/srv/"))

;; (setq projectile-known-projects-file "~/.emacs.d/.projectile-bookmarks.eld.emacs")
;; (setq projectile-cache-file "~/.projectile.cache.emacs")
;; (setq projectile-use-native-indexing t)
(setq projectile-indexing-method 'native)
(setq projectile-enable-caching t)
(setq projectile-file-exists-local-cache-expire (* 5 60)) ;cache 5分钟过期
(setq projectile-show-paths-function 'projectile-hashify-with-relative-paths) 
(setq projectile-completion-system 'ivy) ;ido helm
(setq projectile-use-git-grep t)        ;git grep,会跳过搜索.git/,.gitignore忽略的文件.

(require 'helm-projectile)
(helm-projectile-on)


(provide 'prj-config)
